import axios from "axios";
import {message} from "antd";
const sytRequest = axios.create({
    baseURL:"/syt/admin"
})

sytRequest.interceptors.response.use((res:any)=>{
    if(res.data.code === 200) return res.data;
    message.error(res.data.message)
    return Promise.reject(res.data);
});
export default sytRequest;